package com.xinruke.hostels.manage.user.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @ClassName RoleModifyDTO
 * @CreateDate 2019/6/13
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 角色修改请求
 */
@ApiModel("角色修改请求")
@Data
public class RoleModifyDTO {
    @ApiModelProperty(value = "修改的id",required = true)
    @NotNull(message = "id不能为空")
    private Integer id;

    @ApiModelProperty(value = "名称", required = true)
    @Size(max = 20, message = "名称的长度必须小于20！")
    private String mingcheng;

    @ApiModelProperty("描述")
    @Size(max = 20, message = "描述的长度必须小于20！")
    private String miaoshu;


}
